package com.digua.frame.plugin.service;

import com.lionbridge.skywalking.extension.config.Constants;
import org.apache.skywalking.apm.agent.core.logging.api.ILog;
import org.apache.skywalking.apm.agent.core.logging.api.LogManager;
import org.apache.skywalking.apm.agent.core.remote.GRPCChannelManager;

/**
 * @description:
 * @author: wangzhilong
 * @date: 2021/10/20
 **/
public class GRPCChannelManagerExtension extends GRPCChannelManager {

    private static final ILog logger = LogManager.getLogger(GRPCChannelManagerExtension.class);

    @Override
    public void boot() {
        logger.debug("GRPCChannelManagerExtension has loaded");
        if (Constants.KEEP_REPORT) {
            super.boot();
        }
    }
}
